export function debounce(fn: Function, delay: number){
  let timer: any;
  return function() {
    clearTimeout(timer)
    timer = setTimeout(() =>{
      fn(arguments)
    }, delay);
  }
}